<?php


namespace App\Services\posts;


use App\Models\posts\PostsCate;

class PostsService
{
    public static function getCate():array
    {
        return array_pluck(PostsCate::select('id','name')->get()->toArray(), 'name','id');
    }
}